import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const MP: AppRouteRecordRaw = {
  path: '/mp',
  name: 'MpApp',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.mp',
    requiresAuth: true,
    icon: 'icon-apps',
    order: 110,
  },
  children: [
    {
      path: 'banner',
      name: 'MpBannerApp',
      component: () => import('@/views/mp/banner/index.vue'),
      meta: {
        locale: 'menu.mp.banner',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'latest',
      name: 'MpLatestApp',
      component: () => import('@/views/mp/latest/index.vue'),
      meta: {
        locale: 'menu.mp.latest',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'sponsor',
      name: 'MpSponsorApp',
      component: () => import('@/views/mp/sponsor/index.vue'),
      meta: {
        locale: 'menu.mp.sponsor',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default MP;
